package com.woniuxy.table.client;

import com.woniuxy.table.client.param.LoadAllStoreTableParam;
import com.woniuxy.table.client.result.DinnerTableClientDto;
import com.woniuxy.table.client.result.DinnerTableTypeClientDto;
import com.woniuxy.table.client.result.TableClientDto;
import common.WoniuPage;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.cloud.openfeign.SpringQueryMap;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;
import result.Result;

import java.util.List;


@FeignClient(contextId = "tableQueryClient",name="table")
public interface TableQueryClient {

    @GetMapping("/loadAllStoreTable")
    public Result<WoniuPage<DinnerTableClientDto>> loadAllStoreTable(@SpringQueryMap LoadAllStoreTableParam loadAllStoreTableParam);

    @GetMapping("/getStoreTableByStoreId")
    public Result<List<DinnerTableClientDto>> getStoreTableByStoreId(@RequestParam("storeId")Integer storeId);

    @GetMapping("/getStoreTableByTable")
    public Result<TableClientDto> getStoreTableByTable(@RequestParam("tableId")Integer tableId);
}
